package files;

import java.util.Arrays;

import de.dnb.basics.applicationComponents.StringUtils;
import de.dnb.basics.statistics.Frequency;

public class Tx {

	public static void main(String[] args) {
		String s = StringUtils.readClipboard();
		Frequency<String> frequency = new Frequency<String>();
		String[] lines = s.split("\n");
		for (String line : lines) {
			String[] columns = line.split("\t");
			columns[0] = columns[0].substring(0, 2);
			System.err.println(Arrays.asList(columns));
			String first = columns[0] + "\t" + columns[1];
			int second = Integer.parseInt(columns[2]);
			frequency.increment(first, second);
		}
		
		System.out.println(frequency);

	}

}
